|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectj3deditor.bin.hierarchy.HierarchyNode
j3deditor.bin.hierarchy.J3DeObject
j3deditor.bin.hierarchy.J3DeShape3D
public class J3DeShape3D
Contains and manages an instance of
javax.media.j3d.Shape3D.
Shape3D| Constructor Summary | |
|---|---|
J3DeShape3D()
Creates an empty J3DeShape3D object. |
|
J3DeShape3D(javax.media.j3d.Shape3D object)
Creates an instance of J3DeShape3D that contains
the given Shape3D object. |
|
J3DeShape3D(Shape3DType type)
Creates an instance of J3DeShape3D with the given type. |
|
| Method Summary | |
|---|---|
void |
addGeometry(J3DeGeometry g)
Adds new geometry. |
HierarchyNode |
clone(HierarchyNode node)
Clones this node. |
J3DeAppearance |
getAppearance()
Returns the appearance object of this node. |
HierarchyNode |
getChild(int index)
Returns the child at the specified index. |
javax.media.j3d.Geometry[] |
getGeometries()
Returns all geometries which are referenced by this Shape3D. |
int |
getIndexOfChild(HierarchyNode child)
Returns the index of specified child. |
int |
getNumberOfChildren()
Returns the number of children. |
void |
init3DObject(javax.media.j3d.Node obj)
Applies the given Node object to this node. |
void |
recalculateNormals(double greaseAngle)
Generates normals using NormalGenerator. |
void |
setGeometry(J3DeGeometry g,
int index)
Replaces geometry at the specified index. |
| Methods inherited from class j3deditor.bin.hierarchy.J3DeObject |
|---|
delete, get3DObject, getObject, getRotationZ, getRotationX, getRotationY, getScaleZ, getScaleX, getScaleY, getTranslationZ, getTranslationX, getTranslationY, initObject, rotate, rotateZ, rotateX, rotateY, scale, scaleAll, scaleZ, scaleX, scaleY, setNode, setObject, translate, translateZ, translateX, translateY |
| Methods inherited from class j3deditor.bin.hierarchy.HierarchyNode |
|---|
equals, getIndex, getParent, getParent, getType, hasNamedChild, removeChild, setName, setParent, toString, updateName |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public J3DeShape3D()
J3DeShape3D object.
Requires initialization with init3DObject() method
public J3DeShape3D(Shape3DType type)
J3DeShape3D with the given type.
type - the type of the objectpublic J3DeShape3D(javax.media.j3d.Shape3D object)
J3DeShape3D that contains
the given Shape3D object.
object - the object that will be applied to this node| Method Detail |
|---|
public void init3DObject(javax.media.j3d.Node obj)
Node object to this node.
obj - object to be applied to this nodepublic HierarchyNode clone(HierarchyNode node)
clone in class J3DeObjectnode - object sent by subclass, otherwise null
public HierarchyNode getChild(int index)
getChild in class HierarchyNodeindex - index of child
public int getNumberOfChildren()
getNumberOfChildren in class HierarchyNodepublic int getIndexOfChild(HierarchyNode child)
getIndexOfChild in class HierarchyNodechild - child node which index will be returned
public J3DeAppearance getAppearance()
public javax.media.j3d.Geometry[] getGeometries()
public void setGeometry(J3DeGeometry g,
int index)
g - new geometryindex - index of geometrypublic void addGeometry(J3DeGeometry g)
g - new geometrypublic void recalculateNormals(double greaseAngle)
NormalGenerator.
greaseAngle - grease angle in degreesNormalGenerator.generateNormals(GeometryInfo geom)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||